updated gemfiles and added methods to manipulate arrays