abstraction of Actor class
main loop