<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_json_file(cls, path):
 """ Read an instance from a JSON-formatted file. :return: A new instance """

        with open(path, 'r') as f:
            return cls.from_dict(json.load(f))