Source code for CSE113 lab 6.