took classes out of webpage code and put in its own file