Implemented Math.min example