Scrapped old code; using day6