Implemented the form factory