Added model#extract function