lesson4 task1(#9) - triangle