add initial code

This is messy. Building from here.