Added condition variable using example