fixed course number and added last tried statement