Create object instead of a function call

Create object instead of a function call