added solution main app code