Learning science by being scientists