cs201 project code snippets