Added model and other stuffs for auto pay(partial commit) for issue #1
commit after resolving conflicts from autopay merge