Using classes so that logging can be used.