initial solution done and working
completed my_solution.rb