Implement Application constructor