I executed the code this way and having errors in it please help.