Sample program runs properly in linux!