added "array" argument type
added polygon drawing