just sample program how it is working