Show that $(\lnot(p\lor(\lnot p\land q))$ is logically equivalent to $\lnot p \land \lnot q$.
I am wondering what I did is correct. Very new to learning simple logic.
$$(\lnot(p\lor(\lnot p\land q)) \equiv \lnot((p\lor\lnot p)\land(p\lor q)) \\ \equiv \lnot(\text{T} \land (p\lor q)) \\ \equiv\lnot(p \lor q) \\ \equiv \lnot p \land \lnot q \\ \square$$