Reformated the code