rest of exercises from learn to program book, had to use a lot of the solutions for the proc & block sections