homework 5 (fixed small  bugs in 5_5)

last check homework 5:
https://github.com/marozau/cpp_craft_0314/pull/294