problems 57 and 58 solved