updated example to use the $class pseudo param