How to call a void method from another class