Source code from CS241 assignments.