Built two functions, the assignment is working now.