implemented basic gpu class functions