initial code base

minimal implementation, something like a prototype.