Step 1 &-; defining the custom class