Added ex4.rb and ex5.rb