Changed all max and min's fields to double instead of int
Started playing around with arrays and generics