added answer functionality