Added constructor with parameters