Box Factory solutions

Box Factory was solved using Scala by 7 contestants. Solution sizes: average 2224 bytes (shortest: 1304; longest: 3202).