Used a function to solve the challenge in Part 2 (add two floats into a double)