prints out fields and methods