Update the form class and add an example