series sample code added