That is a ton of code if the goal is writing a web page that does addition. Maybe that wasn't the goal.