Implemented threading with Wait() and Notify()

Managed to implement pause and resume of the child object, using Wait
and Notify.