compiler makes classes serializable