classes model and mapper