Implemented a working slicer