Sucessfully implement basic function