Added application code from Phase 1