beautified example
added small changes, nearing the end