third commit, graphs semi-working