added draw polygon method