Changed ten[] to int