making a program for one of my lectures... probably useless for anyone