Lambda expression replaced inner class.