map&reduce, case classes 1