Add PartialFunction *** PartialFunction, closes #30