Invia SMS: Optimal contracts for teams