added exercise for methods with blocks