Update main.cpp

Add constructor but result in bunches of unresolved external symbols