Can anyone please give me a click on my brain? I'm having difficulties understanding "Class" from Swift. 
every time i create a class (custom) i fail. so what i normally do. i create a function and use it over and over again. Just don't feel right.

for example.
I want to create a class so by just by accessing it, i can create UILabel without using the method below

```
func addView(title:String, fontColor:UIColor, fontType:UIFont, bgColor:UIColor, x:CGFloat, y:CGFloat, width:CGFloat, height:CGFloat) {

    let myView = UILabel()
    myView.text = title
    myView.sizeToFit()
    myView.numberOfLines = 0
    myView.textColor = fontColor
    myView.font = fontType
    myView.backgroundColor = bgColor
    myView.frame = CGRectMake(x, y, width, height)
    self.view.addSubview(myView)
}

```

I just dont know how to understand creating a class. 
Can anyone give me a good example? Thanks