Added lesson 6 code examples

Signed-off-by: Thomas Seng Hin Mak <makzan@gmail.com>