Putting attributes into list format