simple pmf class in utils