defined add and update application. now for tests and implementation