defined todo model and service