add Function

homework