added a type class that finds types of units