create method to connect to primo and wrote tests #6 #7 #8 #9