Optimized code(static & non-static variables)