How to make my class active and interactive