Used IJ to format the code