fixed issue in #11

delete friend class