cs104 project code snippets