Small code examples for undergraduate instruction