drawing shape of a rectangle