getPasses method

removed previous code to get number of passes from user. Created a
reusable method to get the passes