IMPLEMENTATION OF P5