Add abstract formatter class