Add my solutions to lab4's homework #6