added notes completed code