cleaning up the code and learning to use style sheets