Toy OS in C++