Turned priority into a class