Made Calculate class and added implementation to frmMain