Added simple constructor with parameters to initialize data members