Basic function done & a simple sample