creating answers functionality added