finish first task, gonna say tail-recursion begin to show its advantage