contract crud almost finished