Update class1.html

Many fixes and updates. Rearranged the code for better flow.