task4 rect & line