I have read through both of the following questions but I cannot work out what is going wrong from these, I am sure it is a similar problem though: