ticket:7 Solution (tests passed)