For Graphics Class