Unit 2: Logic and Flow control