use fround to truncate to floats
don't require class to be public to run the main method