robo shop using case classes and pattern matching