Design pattern n2