added code samples from class