added class definition to generated builder (closes #6)