Create code.cpp

Yet to be debugged.Displays only the first two levels.