created square method
created to_bool method
added is_prime method