Removing inherited class and making properties public