Writing programs for struggling students