Generate method body