Separeting UI code from logic code.