Moved code from ipp to header file
Answered all questions