Adding libs and implementing Quad