programming praxis square function