added a constructor to my class