Head Library Implemented with it's test case.