created to learn a restful api