Family, religion helped forge top student