Add example of input/output
Make wait private