Add base class for units, along with different implementation of units.