MainController. Added example of directive usage.