final exam and solutions