Help me with example 2 and 3

Help me with example 2 and 3 class=