Example 26, 29, 30

Logic in examples 27 and 28
working with if-statements