adding completed code examples