adding notes and codes from seventh exercise