Implemented Frame class. Untested.