converted anonymouse clases to static classes