Separate the form class and the calculation class