This uses looping and conditions.