main.cpp instead of designpatterns.cpp