Implementing Connection.java