CONTEST CODE ADDED. **FINAL**