Solution for riddle #7