Add Struct class and unit tests.