0:00:01.400,0:00:04.300 (Brina Lee - Instagram Engineer)[br]A function is pretty much a sequence of instructions 0:00:04.350,0:00:06.100 to perform a specific task. 0:00:06.100,0:00:08.109 Basically if you're building a car, 0:00:08.109,0:00:11.200 what you want the car to do is what a function is. 0:00:11.200,0:00:12.800 Turn right, you want to turn left, 0:00:12.800,0:00:15.200 you want it to drive, you want it to stop. 0:00:15.200,0:00:17.100 All those could be functions. 0:00:17.100,0:00:18.300 Now that we're back with our farmer, 0:00:18.300,0:00:20.800 we're going to start learning how to define functions. 0:00:20.800,0:00:22.200 You'll notice in your workspace 0:00:22.200,0:00:24.700 that there's a block that has a star in the corner. 0:00:24.779,0:00:26.800 This is a function definition. 0:00:26.800,0:00:30.000 At the top line of the block it tells us the name of the function. 0:00:30.000,0:00:32.700 The blocks inside of it tell us what it does. 0:00:32.700,0:00:34.800 This definition sits in the workspace, 0:00:34.800,0:00:36.680 but our farmer won't do the actions 0:00:36.680,0:00:40.000 inside the function, until we drag out the function block. 0:00:40.000,0:00:43.500 To do that, we need to click on the functions category in the menu 0:00:43.500,0:00:46.000 and drag out the "fill 5" function. 0:00:46.000,0:00:49.000 Let's put the fun back into functions!