index change
added notes and completed coding