Attempting compile involving classes