implements a command line unit converting calculator