Advanced Functions - first two tasks