Refactored list to use square brackets