first 'require' implementation

basic implementation and corresponding tests.