MOD: implement the Line/Rect/Circle class