Final code to submit for nationals