adds connection to teacher