Add max case to simpleAdding function