Made variables protected so they can be accessed by children classes