closes #6 Wrap the object with a closure