change lab1 IO module to use functions