created a base unit class that will be the basis for types of units