Implementation of scheme