Added a class for connections.
Fixed the issue of multiplication by scalars.