conditional probability works but input not working yet
conditional probability implemented fully