implemented all apis and tests are successful