C Code i made for school.