added business logic to app