tournament model code added