added logging class