more notes plus some code samples