using a list of functions to go over the different stages rather than using if else or switch statements which are not available in Python.