corrected some code examples in CSP1150 lecture 2