Code for 1 task: No errors:some warnings though