Creating a class to manage workers