added missing public scope to constructor