Added wait and notify example.