Added the getNote function