Bits of code from class work