Add problem #3 solutions