Add my solutions for the third homework of lab2-and-3