Created Rakefile and Gemfile to install dependencies. Also Refactor the code.