Cleaned program using lists and methods