Not working Subject class