added objects + implement readfile function
added random array size for testing