Constructor for battery