Finished system.cpp