Updated save code for education