implement Max tagged method + tests
implement Min tagged method + tests