added solution for vortex1