near final competition code