Creating member variables, functions, and calling inherited classes