array push function created and final mark calc