a pill is used for medicine