building application with foundation