a pistol is a type of gun