Final report

Modify the codes and added solutions so the code can be used as a lab
for students.