- adds functionality to store the sleep time and configure the activity
accordingly on resume (#7)