Wrote the methods keys, values, and invert as well as the specs