Changed requirements from a sum to record type

This seems easier to work with.