resource defaults at the beginning of a class is a anti-pattern