changed poly to string
density function lab4
add docstring