You are not made right with God by doing good works or by keeping the law. The reason is that we are not able in ourselves to do the kind of good works and the kind of law keeping that can secure a right standing with God. By the works of the law no human being will be justified in his sight (Romans 3:20). However, those who have indeed been justified because of God's grace and due to Christ's life of obedience and penal sacrificial death through faith in Christ and his work will indeed make strides in keeping God's law and in doing good works that please God.