First Try on the Function