<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_size(cls, data, width, height):
 # type: (bytearray, int, int) -> ScreenShot """ Instantiate a new class given only screen shot's data and size. """


        monitor = {"left": 0, "top": 0, "width": width, "height": height}
        return cls(data, monitor)