Finished exercise7.rb