Used predefined methods instead of repeating in the constructor