Not working: try to create n-number of beacon but problem with contracting a vector