prescription object implemented