Adding more instance variables and methods in a derived class