Solutions to problems 1-2