thread pool added, supporting 2 users yet.Also now the functionality is implemented through runnable interface.