Solutions to exercise problems