Working on DaoFactory