Here are corrections for Sam's homework