working version of cut class, not fully implemented