added bind method to closure solution