ToDo Assignment with funtions