Updated professor's notes
Added functionality
Reindented