simple illustration of using ionic framework