DataModel class, load and save patterns