Smart bullet