Added testing class. Did parts (a) and (b)