Constructor updated

Add constructor. Worked in class