Updated Sample class.