first functional script