create class perseptron