Created PyPs class