Add formatter class

Hey @bbauer could you try this solution described here: http://stackoverflow.com/questions/19368437/how-to-use-define-method-inside-initialize