Added method to add student hash to array