here is a sample program I wrote