Refactoring done for initialize method

Refactoring done for create_container.rb