added solutions for methods_with_blocks excercise