import some patterns from mixu book