Rewrote prettyPrint for arrays