Put the written part of the answer into your function as a comment.