added notes, completed coding