learn how to use pass params and use each