parent class working