A simple engine written in c++