add friend class for model