moved coin dropped code to model