Had to include iostream for error exception