FFI basics

Basic groundwork for FFI.