Created a Decision class that acts according to the received action