I'm new at bash and I am trying to make this, here is a pseudo code:

```
id= "pidof rhytmbox" (rhytmbox changes pid everytime i start it)

echo "Input time: "
read time

sleep $time
kill $pid

```

can you assist me?