Rewriting my reminder note as a little pseudocode