begun work in test.cpp, as a proof of concept