continuing work on assignment 3 -- adding in use of pattern matching in argument list