Added the method class to abstract away the MethodDefRow class