add method to main3 object