Added pseudo algorithm for creating model