Working on rectangle