fixing an issue with ex_3_5.c