creating peer class