altered get_answer method. removed puts statement