Updated code examples

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

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