PeopleAndCycle is a sample of factory pattern, create a factory interface to declare a method, implements the method to return a reference of only one kind of class