Add contructor to class