Modified data persistence example