I have tried before using this, but I had the error, that I can't reference a non-static variable from a static context. package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public static void addNewCat() { //write your code here catCount inc = new catCount(); inc += 1; } public static void main(String[] args) { } }