refactoring models; implementation of file handling
refactoring models; implementation of file handling - again