Fourth homework from Software University