Implement define

Implement define.