objects passing in function calling - demo