Adding inheritance to change menu.cpp