Added basic business logic and data access logic