corrected nondefault constructor
first passing test