made prescription object oriented for more convenient calling