Example 3 - done in Cloud9 IDE