updated java1_BoxProject for lesson 12