Added Thread and DisplayedThread classes