Creating list using the google collection list and refactoring code.