Added primitive Alg class.