A model for projectile fragmentation