creating calculator page method