setting up sub class