solutions/max_kaskevich/4/sources/4_5: added code without threading.