Practice 2/to bool

to_bool function was implemented