trying something new to get the value of calculateSum function