An exercise in implementing data structures.