Console input output homework