Altered main to use floating point values instead of integers for better accuracy