Connection is put into own class