created factory and sub classes

Creating a factory of Apple Devices. imacs, macbook pros, and ipads.