created functions

functions for sleep, work and dirtFactor