My part in Cup

Just finished writing it. No checking were done!