#2: buttons 'load' and 'save' were moved to menu
model.h: <algorithm> for std::min,max was included