convert each grade block to use models