Added main, null pointer exception in declaring first criteria