Name the jars from "1" to "5"

Also factor out a class for the jars connection
so that the names can be used more easily.