added execute_command method