Create note function working