BorderDemo demo 

I've cleanup some of the code and tried to make it look like the java version
What do you think?