Add class with static field example