build modle with active model