Updating Hooks class to take container object.
Passing container object to hooks class.