Solutions to exam