Refactor the code to Apple's standards of writing.