Preserve method name when assigning methods (issue #2)