Finished c codes, need to learn how to use functions xd