Well, though how you have it is perfectly fine, at least that I'm aware of, you could possibly pass a double parameter called number to your class.

public class FunMath {
public...