added interface for units and spaces, also added a class for testing