Masterful code for setting ship layout