Finished beautiful.cpp