added structure, define size(x,y)