Implementation of Stage object(draw rectangle)