Did part C, imported another library to Main and added some additional test cases. Version 3