updated to use partial functions to eliminate the case error
updated with another example of pattern matching with partial functions
added generators examples in map and flatMap
added partial function with nested matching case
added example generators for pairs and lists
added test method example, that passes random arguments to functions