define interface of core functions, and encapsulate unit conversion tables.