Added constructor method