final exam solutions