he and sameer were both in their final year of engineering and had been friends with each other almost since the first month of their arrival here , having first encountered each other as class mates and then as team mates .