Am i doing something wrong??
Yes. You're posting pictures of your code instead of your code.