explicit use of numpy functions implemented