Added detailed example, courtesy of @ruebot.