implemented TLS, concurrency, passing all auto grader tests