passing 2 parameters and using an object for parameters.