solved q4.57
solved 4.58