How to create functional script in coursera