Make actions into a class