Getting rid of timerlength and interval in mainviewcontroller to better implement OO design