added emily's code examples