It's sounds really stupid, but if you want to be a writer you need to write. That's honestly like 99% of it.
Write and write and write. Classes are fine, but I think the most important aspect of a class is that it forces you to write.
Books are fine if they inspire you to write.