worked on the front end of the algorithms