printing into a file results

still have bug