function prototypes done
lab9 helper