Working master.cpp :)