Putting it all together for given params
Putting it all together for given params