Reformatted all the codes