Added has..,. methods
Added checks over the arguments
Now main uses constant
haddes has... methods for all the classes