Abstract loop pattern n2