some changes | Ponomarenko Bogdan
decided to conflict
added function to determine the scale