Solutions to problems 1, 2, 4, 6, and 8