Small library to do unit conversion