Solution , By function,