added spacing and alter names of the methods.