Created a class and an object in Swift