implement and test cut_plane