I don't fully understand this comment. The code below seems simple enough though.