Working Tor client with classes

added classes to the tor client