inital commit for problem 3 (Ruby)