extended Frame class - added serialization method