methods now being defined dynamically

Keep a blank line before and after `protected`.