added new constructor to Connection.java