Task3 Part1 Factory Design Pattern