Added assignment code and documentation.