commented competition code