Adding basic slider and graph code