Adding notes and functions from the 3rd lab