Add my solutions for lab2-and-3's homework 4