class coding problems