An elementary approach to the group law on elliptic curves