Doesn't compile. Uncomment the printfs and comment out the print_data function to run. Added different input validation.