Create 6-exercises.rb

Exercises from Chapter 6.