made recorder a class.