assginment 2: Slice tool