lecture and provided code