Last example with all of the three loops