I didn't find the paid plugin I was talking about in the comments, but instead I found similar StackOverflow questions:
Although I don't know of any actual plugins that create and compile visual class blocks, it would be a better practice (e.g. for a beginner) to actually write code, then view the UML representation of what he wrote, instead of working directly with those blocks. But that's my humble opinion.
Cheers.