Made grade serialisable for saving.