Add my solutions for lab1's homework 5