Rifles are used in warfare , hunting and shooting sports .
Rifles can work in different ways .