still trying to get the fgets example working