added preliminary logic and index files