def get_extensions(list_of_files):
    """Function take a list of Path file objects and adds the file extenstion/suffix to a set. The set of extensions
    is returned"""
    extensions = set()
    for file in list_of_files:
        if len(file.suffix) < 6:
            extensions.add((file.suffix).lstrip('.'))

    return extensions