Added code for lecture on serialization