Code for first Application