Initial code for "define", probably is buggy right now