A basic implementation of gollum in C++