Краснояров - Лабораторная работа #3

As for me, it's not ok that ``` probabilities ``` contains special characters ```[``` and ```,```.
It would be better to move them at the return expression