made changes to include 2 class classification possible