#138 Implemented waitFor method 

If someone could review my code that will be granted.