completed assignment using ruby code but it does not work if the link is copy and pasted, only from site