Added Logic and Demo