finished prototype framework v1