Adding legacy implementation before starting the exercise