sample code, not working.