Use an enum for the type of Assignments instead of int "magic number" constants.