Parametrized constructor added.