Platforms example of the factory pattern