functioning web app:code cleaned pt2