Code Snippets Used for SJSU CS 185C/267 Term Project :