added main to display.cpp