4. Example 3 and Example 4 solution - si-manual