register class, instance and method running (still WIP)