Atlas persistent storage example code