WIP. Code cleanup.  Defined c? and rc? as functools.partial to make code cleaner.  Added demo of class based functions.