0:00:00.000,0:00:02.840 One of the most important concepts of computer science, 0:00:02.840,0:00:07.230 is how to define new commands;[br]how to add your own words to the computer language. 0:00:08.571,0:00:13.072 Most computer languages have only about a hundred words or commands 0:00:13.072,0:00:18.252 and the art is to define your own new words out of these coding blocks. 0:00:18.252,0:00:20.200 We do this all the time at sports. 0:00:21.922,0:00:26.930 In basketball you learn how to dribble, how to do a lay-up and how to rebound. 0:00:26.930,0:00:30.911 Once you've learned these moves,[br]you learn new moves 0:00:30.911,0:00:34.714 and put together these building blocks, [br]like a pick and roll or give and go 0:00:34.714,0:00:37.503 and from there you can do more complex plays. 0:00:37.503,0:00:43.201 Once you learned that play and give it a name,[br]everybody on the team knows how to do it. 0:00:43.201,0:00:47.344 Simulary, once you learned a computer how to do an action once, 0:00:47.344,0:00:49.086 using these sequence of commands, 0:00:49.086,0:00:53.721 you can make up your own name for that action,[br]so it's easier to repeat it later. 0:00:53.721,0:00:58.273 When you define your own command and give it a name,[br]it's called a function. 0:00:59.613,0:01:00.868 If you are programming with blocks, 0:01:00.868,0:01:05.355 you can use functions if there is a set of actions[br]which you are gonna use a lot of times. 0:01:05.355,0:01:09.177 For example, you've written code to create a square, 0:01:09.177,0:01:13.344 You could define this as a function called "create a square". 0:01:13.344,0:01:18.926 Now you have a new block [br]that you can use multiple times to create multiple squares. 0:01:19.816,0:01:23.353 A lot of simple functions can be used,[br]to create more complex patterns. 0:01:24.073,0:01:25.519 In the next puzzle, 0:01:25.519,0:01:28.112 the code you recently wrote to make a circle 0:01:28.112,0:01:31.842 is available to you as a new function[br]that can make circles of different sizes. 0:01:31.842,0:01:36.309 Can you use it to help Elsa to create a new beautiful pattern in the snow?