Changed method to return an array of robots