Here's my updated version that works with stuff I learned in C programming last year... I have no idea how you wanted me to do this....