added get_score method
reformatted