worked on threading.

threads