Coffeescript version of CS247 P3 starter code.