created a main method that references to metric and imperial methods