basic plotting working in main.cpp, dirty code