Please format the code and remove the redundant spaces.