final code for mail-in competition