copy student_func.cu from HW2 from udacity account