LED example from lecture