changed the name of the quadric object to quadric, and initialize it in
main()