dispose class