#!/usr/bin/python3
"""Create a class Square"""


class Square:
    """Create our beautiful square with some fields and methods"""
    def __init__(self, size=0):
        if type(size) is not int:
            raise TypeError("size must be an integer")
        elif size < 0:
            raise ValueError("size must be >= 0")
        else:
            self.__size = size

    def area(self):
        """This function returns the area of the square"""
        return (self.__size * self.__size)
