added more classes
basic threads implementation