add working prototype
Merge pull request #2 from dreadnough/work-1

add working prototype