Fixed indentation and added MIT license for Factory Method pattern.