Code written while studying c++ stepic's course