Cobweb model with learning effects