updated example Formatter class constructor