Rebecca's code