Added Scala Pattern Matching. Original placement in File could not be found so I added at the end of the file