Learning iOS design pattern.