Added structure and first functions for time spent graph