add persistence stuffs and rename to Schedule