Fix whitespace and indentation issues
Use 'z' for rightmost element, rather than 'a'