did this in class as a demo