Using Case Classes in Match Expressions