adding edward's source code