School assignments written in C++