missing self

i believe this should be an example of method, not function. so there were some `self` missing.