tidied up methods. added global students variable