Бышева - Лабораторная работа #2 

updateStatus() seems to be very complex - maybe it is possible to extract some methods from it?