Science of dispensing drugs