added constructor to class