Add demo3 implenented in C

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Rename demo $SPAGHETTI to demo3.py

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>