PartialFunction Example