moved example code to new file, improved styles