Errors in code

few mistakes