added a unit conversion module for refacoring