modified based on lecture today