basic, almost-working version of cptcat