Code for the time court app