update summer.snippet for lecture 12 functions