kobject: add sample code for how to use kobjects in a simple manner.