I've been reading this textbook over break, this excersise involved loops.