Hey, this isn't homework, it's part of the job interview at RiskMetrics! That's not very cool, posting it here like this. Why don't you try learning some XML instead?
You should keep in mind that at least one former RiskMetrics employee is regularly on this site: japhy.