refactored models to own dir