add constructor/destructor into MoeClass