Added a constructor; initialized variables within