Now, a form can be passed as a parameter to the constructor