first version that does something

hangs at end, event listening isn’t correct. code needs to be cleaned
up.