Use rust style enum names.
Implement get_key method for types.
Add initial (failing) unit test for memory log.