Solutions to problems 5 and 8.