Bullet class and functions