Adding new constructor with two parameters.