add logic for last beginner question