added version 0.2, which has event delegation