Same main function for all list implementations