Ratemaking is one of the most important tasks of non-life actuaries. Usually, the ratemaking process is done in two steps. In the first step, a priori ratemaking, an a priori premium is computed based on the characteristics of the insureds. In the second step, called the a posteriori ratemaking, the past claims experience of each insured is considered to the a priori premium and set the final net premium. In practice, for automobile insurance, this correction is usually done with bonus-malus systems, or variations on them, which offer many advantages. In recent years, insurers have accumulated longitudinal information on their policyholders, and actuaries can now use many years of informations for a single insured. For this kind of data, called panel or longitudinal data, we propose an alternative to the two-step ratemaking approach and argue this old approach should no longer be used. As opposed to a posteriori models of cross-section data, the models proposed in this paper generate premiums based on empirical results rather than inductive probability. We propose a new way to deal with bonus-malus systems when panel data are available. Using car insurance data, a numerical illustration using at-fault and non-at-fault claims of a Canadian insurance company is included to support this discussion. Even if we apply the model for car insurance, as long as another line of business uses past claim experience to set the premiums, we maintain that a similar approach to the model proposed should be used.