Reformatted code to fit the guidelines.