ruby: simple gpa calculator