Implementing the JamJars class in Scala. Becaue why not.