Dry Principle Function Vs Class Based