Swift code using playground to implement a list view