Fixed Call a non-static method erro