Implemented Connection code (v0.1.1)