making fun declaration
functions v1 full
if instructions working
fixing memory leaks
fixing memory leaks v2
final v1