Relations, classes and design