scala exercises (P58)