changed the math type of 'P_val' to 'N'
created a method to query for program types