finishe the RectangleSplit.java