Write all serializable classes except CGRect. Write and test three types of errors