ammended p2.h and added cstdlib to include rand in p2_list.cpp