Working model and tests