Creating a base class