     
     mutating func addWorkoutLog(workoutLog: WorkoutLog) {
         let dateString = workoutLog.date
-        let typeOfWorkout = workoutLog.workout.typeOfWorkout
         
         if var lastKey = collectionOfWorkoutLogs.keys.last {
             lastKey += 1
-            collectionOfWorkoutLogs[lastKey] = (dateString, typeOfWorkout, workoutLog)
+            collectionOfWorkoutLogs[lastKey] = (dateString, workoutLog)
         } else {
-            collectionOfWorkoutLogs[0] = (dateString, typeOfWorkout, workoutLog)
+            collectionOfWorkoutLogs[0] = (dateString,workoutLog)
         }
         
     }

import Foundation

struct LogManager {
    var collectionOfWorkoutLogs = OrderedDictionary<Int, (date: String, typeOfWorkout: TypeOfWorkout, workoutLog: WorkoutLog)>()
    
    init(){
        

        let keys = collectionOfWorkoutLogs.keys.reverse()
        for i in keys {
            if let pastWorkoutType = collectionOfWorkoutLogs[i] {
                if pastWorkoutType.workoutLog.workout.typeOfWorkout == typeOfWorkout {
                    return pastWorkoutType.workoutLog.workout.exercises
                }
            }
