rb2 solution7 - passing blocks