added index page and implemented 1st part of assignment