NameException - Added solution to raise exception on invalid name entry