individual functions complete. add main testing code