static variables and functions explained