import code from lecture