implemented random instruction