Notes for lecture 18: Comparing objects, object sorting, compound statements