Defining the factory method (creator interface) and its concrete implementation