Change all ans to @ans because accessor not working