Modular forms associated to real quadratic fields