refactoring data into handle plus node

refactoring the Model factory to store the data in the node and its
interface in the handle