Ported some small examples from D1

Test-bed coming later, I hope.