Reimplemented buffer and have hardcoded transform function as test