Added solution for calculating spares using multiple dispatch rules.