added first working version of v_ellipses_square