Final competition code