pistols and rifles are both types of guns