Bugfix for empty classes and updated example