This is sample from http://www.raywenderlich.com/1768/how-to-make-a-custom-uiview-a-5-star-rating-view. I upload here to store my changes in code