Teaching transient and persistent data storage