Added solution to the base mod operator