train method takes two arguments the training input and expected output, in our case the input is the size and output is the price from our dataset, finally we have __call__ which is the override of the operator (), it will give us the possibility to call our object as a function and it will be hypothesis function.