Constructor in main