more samples on logic and looping