Working min and max! (finally)
Used template!