[#6][#5] updated the constructor and added points calculations