Made functions private and a small change in line 12, addressing comment