Re-did assignment based on readings and examples. Comments in source.