moved Model task to separate Model class