Method of fundamental solutions