Skeleton code for purifier