public SpecificLog(List <GuardLogWithId> logs) { this.Logs = logs; this.GuardId = logs.First().GuardId; this.SleepTime = GetSleepTime(); this.Minutes = DetermineMinutes(); this.Occurences = Minutes.Max(); this.MostPopularMinute = Minutes.ToList().IndexOf(Occurences); }