parsing data into object by using annotations