CS 314 Pattern Matching/ Using Cons data structure