The effects of pattern oriented teaching