A class can have no methods and methods can return void

The code currently fails for classes that don't have methods and methods that return void