Necessary classes are serializable