# 2j: jar and jug logic