on the fly method addition to class