With using parent class, but trouble with construction, although using pragma