created a working model