USC CS101 Code Snippets