fixed 'cannot use + on no nil class' error by setting argument inputs to instance variables in initialize method