Added example code cleaned up initialization