Fixed parent code. Program is now able to compile