add friend class to model