Creates task model