internal classes are also serializable