Adding a field and extracting a method