Change calculate() to public.