1.added new feature :console
2.It has race condition problem.