Java Single Responsibility Principle Example