Added the addToObject() method to the Form class