cleaned up example code... -sai