code for rating submission
score calculation and display
change to pre to respect newlines