Implemented a few solutions to scenario4.rb